home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Games / ADoomPPC / src / r_plane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-13  |  1.9 KB  |  95 lines

  1. // Emacs style mode select   -*- C++ -*- 
  2. //-----------------------------------------------------------------------------
  3. //
  4. // $Id:$
  5. //
  6. // Copyright (C) 1993-1996 by id Software, Inc.
  7. //
  8. // This source is available for distribution and/or modification
  9. // only under the terms of the DOOM Source Code License as
  10. // published by id Software. All rights reserved.
  11. //
  12. // The source is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
  15. // for more details.
  16. //
  17. // DESCRIPTION:
  18. //    Refresh, visplane stuff (floor, ceilings).
  19. //
  20. //-----------------------------------------------------------------------------
  21.  
  22.  
  23. #ifndef __R_PLANE__
  24. #define __R_PLANE__
  25.  
  26.  
  27. #include "doomdef.h"
  28. #include "r_data.h"
  29.  
  30. #ifdef __GNUG__
  31. #pragma interface
  32. #endif
  33.  
  34.  
  35. // Visplane related.
  36. extern  short*        lastopening;
  37.  
  38.  
  39. typedef void (*planefunction_t) (int top, int bottom);
  40.  
  41. extern planefunction_t    floorfunc;
  42. extern planefunction_t    ceilingfunc_t;
  43.  
  44. //extern short        floorclip[SCREENWIDTH];
  45. //extern short        ceilingclip[SCREENWIDTH];
  46. extern short        *floorclip;
  47. extern short        *ceilingclip;
  48.  
  49. //extern FAR fixed_t    yslope[SCREENHEIGHT];
  50. //extern FAR fixed_t    distscale[SCREENWIDTH];
  51. extern fixed_t        *yslope;
  52. extern fixed_t        *distscale;
  53.  
  54. void resinit_r_plane (void);  //called before anything else
  55.  
  56. void R_InitPlanes (void);
  57. void R_ClearPlanes (void);
  58.  
  59. void
  60. R_MapPlane
  61. ( int        y,
  62.   int        x1,
  63.   int        x2 );
  64.  
  65. void
  66. R_MakeSpans
  67. ( int        x,
  68.   int        t1,
  69.   int        b1,
  70.   int        t2,
  71.   int        b2 );
  72.  
  73. void R_DrawPlanes (void);
  74.  
  75. visplane_t*
  76. R_FindPlane
  77. ( fixed_t    height,
  78.   int        picnum,
  79.   int        lightlevel );
  80.  
  81. visplane_t*
  82. R_CheckPlane
  83. ( visplane_t*    pl,
  84.   int        start,
  85.   int        stop );
  86.  
  87.  
  88.  
  89. #endif
  90. //-----------------------------------------------------------------------------
  91. //
  92. // $Log:$
  93. //
  94. //-----------------------------------------------------------------------------
  95.